import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex)
export default new Vuex.Store({
    state:{
        username:'',
        isLogin: localStorage.getItem('isLogin') != null
    },
    mutations:{
        addUsername(state, name){
            state.username = name
        },
        changeLogin(state,isLogin){
            state.isLogin = isLogin
        }

    },
    getters:{

    }
})